package com.yz.sharkim.entity.message.response;

import com.yz.sharkim.annotation.Id;
import com.yz.sharkim.entity.message.BaseMessage;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 消息接收
 * @author yangzheng
 * @version 1.0
 * @date 2019/11/4 10:55
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Id(BaseMessage.RECEIVE_MESSAGE)
public class Receive extends BaseMessage {

    private Integer from;

    private String content;

    private LocalDateTime time;

    public Receive(Integer from, String content, LocalDateTime time) {
        this.from = from;
        this.content = content;
        this.time = time;
    }
}
